package 字符串;

import java.util.Scanner;

public class 移除字符串中连续出现的k个0 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        String remove="";
        for (int i = 1; i <= n; i++) {
            remove = remove+"0";
        }
        String str = "15000300";
        String replace = str.replace(remove, "");
        System.out.println(replace);
    }
}
